package com.iweb.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;


public class Book {
    private int id;
    private int userID;
    private int placeID;
    private Date startTime;

    private Date endTime;

    private Date bookTime;

    public Book(int id, int userID, int placeID, Date startTime, Date endTime, Date bookTime) {
        this.id = id;
        this.userID = userID;
        this.placeID = placeID;
        this.startTime = startTime;
        this.endTime = endTime;
        this.bookTime = bookTime;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", userID=" + userID +
                ", placeID=" + placeID +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", bookTime=" + bookTime +
                '}';
    }

    public Book() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getPlaceID() {
        return placeID;
    }

    public void setPlaceID(int placeID) {
        this.placeID = placeID;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getBookTime() {
        return bookTime;
    }

    public void setBookTime(Date bookTime) {
        this.bookTime = bookTime;
    }
}
